package com.boboPlanet.comm.enums;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @Description: TODO 错误码尽量不重复，可能前端做了判断 如登录过期
 * @Author: mis_wu
 * @Date: 2022/7/19
 **/
@AllArgsConstructor
@NoArgsConstructor
public enum LoginUserErrorEnum {

    USER_INFO_NOT_EXIST("10001","用户信息不存在,请检查账户或密码"),
    USER_LOGIN_INFO_NOT_NULL("10002","用户登录信息不允许为空"),
    USER_NAME_PASSWORD_ERROR("10003","登录用户名或密码错误"),
    LOGIN_USER_TOKEN_EXPIRE("10004","登录信息过期请重新登录"),
    LOGIN_PRE_REQUEST_REPEAT("10005","操作过快,请勿重复请求"),

    USER_REG_INFO_NOT_NULL("10006","用户注册信息不允许为空"),
    USER_REG_INFO_IS_EXIST("10007","当前账号已存在,请重新输入"),

    CURRENT_ACCOUNT_IS_LOCK("10008","当前账号已被锁定,请一小时之后再试"),

    CURRENT_ACCOUNT_IS_LOGIN("10009","当前账号已登录,请勿重复登录!!!"),

    CURRENT_ACCOUNT_EXCEPTION("10010","当前账户异常,请 30分钟 后再试!!!"),

    USER_AUTHOR_FAIL("10011","用户鉴权失败,请联系管理员!!!"),

    AUTHORITATIVE_EXPIRE("203","用户登录信息过期,请重新登录"),




    ;

    private String code;
    private String desc;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
